package com.itheima.d08_thread_synchronized_lock;

public class Test {

    public static void main(String[] args) {
        //1.创建公共的账户
        Account account = new Account("ICBC-1111", 100000);

        //2.创建两个取钱的线程对象
        new DrawThread("小明",account).start();

        new DrawThread("小红", account).start();



        //模拟：创建第二户用户
        Account account2 = new Account("ICBC-6666", 100000);

        //2.创建两个取钱的线程对象
        new DrawThread("小霞",account2).start();

        new DrawThread("小刚", account2).start();
    }
}
